package cms.utils;


import cms.utils.phpass.PHPass;

public class Encrypt {
	static final PHPass phpass = new PHPass(8);
	
	//高强度加密算法,不可逆
	public static String md5(String password, String salt){
		return phpass.hashPassword(password);
	}

	public static boolean checkPassword(String password,String hash){
		return phpass.checkPassword(password,hash);
	}
	
	public static void main(String[] args) {
		//System.out.println(new Md5Hash("123456","tanglijing02",2).toString());
//		System.out.println(new Md5Hash("123456","shopx5",2).toString());
	}
	
	
}
